package com.li.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.li.domain.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    Admin login(@Param("username") String username,@Param("passowrd") String password);

    List<Admin> listPage(@Param("admin") Admin admin,@Param("indexpage") Integer indexpage,@Param("limit") Integer limit);

    Integer listPageCount(@Param("admin") Admin admin);

    Admin getAdminRoleNameById(@Param("id") Integer id);

    Admin editAdmin(@Param("id") Integer id);
}